# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gnome-screenshot
pkgver=41.0
pkgrel=1
pkgdesc="Screenshot capture utility for GNOME"
url="https://gitlab.gnome.org/GNOME/gnome-screenshot"
arch="all"
license="GPL-2.0-or-later"
depends="desktop-file-utils"
makedepends="
	appstream-glib-dev
	glib-dev
	itstool
	libcanberra-dev
	libhandy1-dev
	meson
	"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/gnome-screenshot/${pkgver%.*}/gnome-screenshot-$pkgver.tar.xz
	fix-build-with-meson-0.60.0.patch
	"

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
ab6c7e22cbca2739844707e59329ecd67901e04f968bd0b20a07dffff825e9772697ebf20a1ab2a920fa839ea40d0bd872d17db2b4cb7856a6f8ee4ec1426d19  gnome-screenshot-41.0.tar.xz
314fe977317b143d36796ab722bbd6f55083448b9737bb838ab21916c05db79925e337a7a84761dc270764b742bbef2d74600d349cd4182fcd787982db59ef1b  fix-build-with-meson-0.60.0.patch
"
